//==================================================================
//  Copyright (C) 2006-2007  Davide Pasca
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//==================================================================
///
///
///
///
///
//==================================================================

#ifndef FONT_H
#define FONT_H

#include <stdarg.h>
#include "psys.h"

void FONT_Create();

int FONT_GetTexname();
int FONT_GetBaseList();
void FONT_puts( const TCHAR *strp );

void FONT_puts( const TCHAR *strp );
void FONT_vprintf( const TCHAR *strp, va_list valist );
void FONT_printf( const TCHAR *strp, ... );
void FONT_puts_pos_ba( const PSYS::RectF &in_rect, int align_x, int align_y, const TCHAR *strp );
void FONT_printf_pos_ba( const PSYS::RectF &in_rect, int align_x, int align_y, const TCHAR *strp, ... );

int FONT_TextHeight();
int FONT_StringWidth( const TCHAR *strp );
//void FONT_BoxAlignPF( int align_x, int align_y, const PSYS::RectF &in_rect, int *out_xp, int *out_yp, const TCHAR *strp, ... );

void FONT_DrawBegin();
void FONT_DrawEnd();

#endif
